package com.duguo.dynamicmvc.support;

import com.duguo.dynamicmvc.model.Model;
import com.duguo.dynamicmvc.view.View;

public class ModelAndViewImpl implements ModelAndView {

    private Model model;
    private View view;


    public ModelAndViewImpl() {
    }

    public ModelAndViewImpl(Model model, View view) {
        this.model = model;
        this.view = view;
    }

    public ModelAndViewImpl(Model model) {
        this.model = model;
    }

    public ModelAndViewImpl(View view) {
        this.view = view;
    }

    public Model getModel() {
        return model;
    }

    public void setModel(Model model) {
        this.model = model;
    }

    public View getView() {
        return view;
    }

    public void setView(View view) {
        this.view = view;
    }
    
    public String toString(){
    	return "model["+model+"],view["+view+"]";
    }


}
